﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Save.aspx.cs" Inherits="MvcMall.AdminWeb.Manage.GoodsBrands.Save" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="scriptManager1" runat="server">
    </asp:ScriptManager>
    <UC:ValidatorContainer runat="server" IsScriptManagerInside="false" ID="ValidatorContainer" />
    <div id="tabs">
        <ul>
            <li><a href="#edit">新增/修改商品品牌</a></li>
        </ul>
        <div id="edit">
            <fieldset>
                <asp:Label ID="lblId" Visible="false" runat="server"></asp:Label>
                <div class="editor-label">
                    所属商品分类:
                </div>
                <div class="editor-field">
                    <asp:UpdatePanel ID="ajax1" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlCats" runat="server" DataTextField="Text" DataValueField="Value"
                                OnSelectedIndexChanged="ddlCats_SelectedIndexChanged" AutoPostBack="True">
                            </asp:DropDownList>
                            <asp:DropDownList ID="ddlChildCats" runat="server" DataTextField="Text" DataValueField="Value">
                            </asp:DropDownList>
                            <div id="ddlChildCatsTip" style="width: 200px;">
                            </div>
                            <UC:ValidateTarget ID="ValidateTarget3" ContainerId="ValidatorContainer" runat="server"
                                OkMessage="OK" NullMessage="所属商品分类称不能为空" ControlToValidate="ddlChildCats" Nullable="false"
                                FocusMessage="请选择所属商品分类">
                                <Validators>
                                    <UC:DropDownListClientValidator ErrorMessage="请选择所属商品分类" />
                                </Validators>
                            </UC:ValidateTarget>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div class="editor-label">
                    品牌名称:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtBrandName" MaxLength="32" runat="server">
                    </asp:TextBox>
                    <div id="txtBrandNameTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget1" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="商品品牌名称不能为空" ControlToValidate="txtBrandName" Nullable="false"
                        FocusMessage="请输入商品品牌名称">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入商品品牌名称" UpperBound="32" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    排序编号:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtSortOrder" MaxLength="32" runat="server">
                    </asp:TextBox>
                    <div id="txtSortOrderTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget2" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="排序编号名称不能为空" ControlToValidate="txtSortOrder" Nullable="false"
                        FocusMessage="请输入排序编号">
                        <Validators>
                            <UC:InputStringClientValidator Regex="\\d*$" ErrorMessage="请输入正确的排序编号" UpperBound="6" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <p>
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClientClick="return PageIsValid();"
                        OnClick="btnSave_Click" /></p>
            </fieldset>
        </div>
    </div>
    </form>
</body>
</html>
